package com.cnostar.demo.controller;

import com.cnostar.demo.service.SynLogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * TODO
 * @Date 2020/3/24 17:11
 * @Author ZhuFeng
 * @Version 2.0
 */
@RestController
public class HelloContrller {

    @Resource
    SynLogService synLogService;

    @GetMapping("/hello")
    public Object hello() {
        Integer integer = synLogService.get("/record/hourly/2020/03/24/FZ01084X_");
        return "123 : " + integer;
    }
}
